# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Deleting field 'FAQ.subcategory'
        db.delete_column('help_faq', 'subcategory')


        # Changing field 'FAQ.category'
        db.alter_column('help_faq', 'category', self.gf('django.db.models.fields.TextField')())

        # Changing field 'FAQ.advanced_answer'
        db.alter_column('help_faq', 'advanced_answer', self.gf('django.db.models.fields.TextField')(null=True))

        # Changing field 'FAQ.quick_answer'
        db.alter_column('help_faq', 'quick_answer', self.gf('django.db.models.fields.TextField')(null=True))

    def backwards(self, orm):
        # Adding field 'FAQ.subcategory'
        db.add_column('help_faq', 'subcategory',
                      self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True),
                      keep_default=False)


        # Changing field 'FAQ.category'
        db.alter_column('help_faq', 'category', self.gf('django.db.models.fields.CharField')(max_length=512))

        # Changing field 'FAQ.advanced_answer'
        db.alter_column('help_faq', 'advanced_answer', self.gf('django.db.models.fields.TextField')(default=''))

        # Changing field 'FAQ.quick_answer'
        db.alter_column('help_faq', 'quick_answer', self.gf('django.db.models.fields.TextField')(default=''))

    models = {
        'help.faq': {
            'Meta': {'object_name': 'FAQ'},
            'advanced_answer': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'answer': ('django.db.models.fields.TextField', [], {}),
            'category': ('django.db.models.fields.TextField', [], {}),
            'course': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
            'for_admin': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'needs_rendering': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'question': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'question_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'question_link': ('django.db.models.fields.SlugField', [], {'max_length': '50'}),
            'quick_answer': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
        }
    }

    complete_apps = ['help']